keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about G400/G410 Cards.

NO ANSWER for every outgoing call with G400P, in CDR

13 years 10 months ago #5710 by james.zhu
hello:
i think it is bug with cdr, this link might help you:
https://issues.asterisk.org/view.php?id=16520

13 years 10 months ago #5729 by vmiro
I think CDR is not a problem, something else is wrong that yields this problem with CDR.
I'm using Asterisk (G400P) which is connected with Cisco Call Manager via SIP trunk. Incoming calls are ok, but the problem are outgoing calls. Asterisk don't know that the outgoing call is established, so CCM hangs up the call after 2:47 (ccm has timeout, probably, if call is not answered).

For the testing purposes I tried using SIP phone instead of CCM.
Here is my configuration:

sip.conf
[miro]
type=friend
secret=********
qualify=yes
nat=no
host=dynamic
dtmfmode=info
disallow=all
allow=gsm
allow=alaw
canreinvite=no
context=sip

zapata.conf
[channels]
txgain = 0.0
rxgain = 0.0
signalling = gsm
context = from-gsm
echocancel=no
relaxdtmf=yes

; slot= A
group=1
channel => 1

; slot=B
group=1
channel => 3


extensions.ael
context from-gsm
{
s => {
Dial(SIP/miro);
Hangup();
}
}

context sip
{
_X. => { Dial(Zap/1/${EXTEN}); Hangup(); }
}

INCOMING CALL:
localhost*CLI>
-- Ring on channel 825833264 (from 123456 to )
-- Executing [s@from-gsm:1] Dial("Zap/1-1", "SIP/miro") in new stack
-- Called miro
-- SIP/miro-085e4e20 is ringing - phone is ringing
-- SIP/miro-085e4e20 answered Zap/1-1 - call answered, offhook
== Spawn extension (from-gsm, s, 1) exited non-zero on 'Zap/1-1'
-- Hungup 'Zap/1-1' - call ended
-- GSM Span 1 registered to network!

Here we got incoming call on Zap/1 which is bridged with SIP/miro. After few rings I picked up a phone, and Asterisk sends info in CLI that the call is answered, which causes an entry in CDR that the call is ANSWERED, and billsec starts counting...

OUTGOING CALL:
localhost*CLI>
-- Executing [237@sip:1] Dial("SIP/miro-085e86b8", "Zap/1/237") in new stack
-- Called 1/237
-- Hungup 'Zap/1-1'
== Spawn extension (sip, 237, 1) exited non-zero on 'SIP/miro-085e86b8'
-- GSM Span 1 registered to network!

Here I got no confirmation that the call is answered, only Called 1/237 line, OK, I don't need it in CLI. CDR will mark this call as NO ANSWER, even if the call duration is 3:23 (using Grandstream witch has no timer which will hang up!). If I try with X-lite, the call is broken after 20-30 seconds, all I got on softphone display is "Calling 237"...

This is more than just a CDR bug...obviously there is something wrong with "bristuffed asterisk" or zaptel drivers. I monitored the CLI when using B400P (mISDN), A1200P (Zaptel) cards on my other * and there is indication that a call (incoming or outgoing) has been "Answered..."


I can provide SSH connection to this Asterisk box...if needed ;)

Thanks
mIRO
13 years 10 months ago #5732 by james.zhu
hi:
Please give us your ssh and we will able to check that. by the way,
how do you set cdr.conf?

13 years 10 months ago #5736 by vmiro
SSH sent...

I didn't change anything in cdr.conf, everything is default.
13 years 10 months ago #5749 by xin.liu
Hi:
From the report file, I find that there is "Answered" item. Please double check it.
=============================================
"","50","125","sip","""Miroslav Vukovic"" <50>","SIP/miro-09680dc8","Zap/1-1","Hangup","","2010-06-07 14:23:50",,"2010-06-07 14:24:00",10,0,"NO ANSWER","DOCUMENTATION","asterisk-1275920630.0",""
"","50","125","sip","""Miroslav Vukovic"" <50>","SIP/miro-085e2f60","Zap/1-1","Hangup","","2010-06-07 19:59:28",,"2010-06-07 19:59:38",10,0,"NO ANSWER","DOCUMENTATION","asterisk-1275940768.0",""
"","237","s","from-gsm","237","Zap/1-1","SIP/miro-085e4e20","Dial","SIP/miro","2010-06-07 20:11:55","2010-06-07 20:12:18","2010-06-07 20:13:15",80,57,"ANSWERED","DOCUMENTATION","asterisk-1275941515.2",""
"","50","237","sip","""Miroslav Vukovic"" <50>","SIP/miro-085e2f60","Zap/1-1","Hangup","","2010-06-07 20:24:00",,"2010-06-07 20:30:45",405,0,"NO ANSWER","DOCUMENTATION","asterisk-1275942240.4",""
"","50","237","sip","""Miroslav Vukovic"" <50>","SIP/miro-085e86b8","Zap/1-1","Dial","Zap/1/237","2010-06-07 20:30:49",,"2010-06-07 20:37:03",374,0,"NO ANSWER","DOCUMENTATION","asterisk-1275942649.6",""
"","055224040","s","from-gsm","05xxxxxxx","Zap/1-1","SIP/miro-085e4e20","Dial","SIP/miro","2010-06-07 20:47:51","2010-06-07 20:48:02","2010-06-07 20:48:11",20,9,"ANSWERED","DOCUMENTATION","asterisk-1275943671.8",""
"","50","125","sip","""Miroslav Vukovic"" <50>","SIP/miro-085e4e20","Zap/1-1","Hangup","","2010-06-07 20:57:33",,"2010-06-07 20:57:42",9,0,"NO ANSWER","DOCUMENTATION","asterisk-1275944253.10",""
"","50","1185","sip","""Miroslav Vukovic"" <50>","SIP/miro-085e2f60","Zap/1-1","Hangup","","2010-06-07 21:01:09",,"2010-06-07 21:01:19",10,0,"NO ANSWER","DOCUMENTATION","asterisk-1275944469.12",""
=============================================

13 years 10 months ago #5761 by vmiro
Please read my previous post :)
Like I sad, the outgoing calls are not billed and Asterisk thinks the call has never been answered!

Line 3:
"","237","s","from-gsm","237","Zap/1-1","SIP/miro-085e4e20","Dial","SIP/miro","2010-06-07 20:11:55","2010-06-07 20:12:18","2010-06-07 20:13:15",80,57,"ANSWERED","DOCUMENTATION","asterisk-1275941515.2",""

This is an incoming call from number 237. The call is bridged with SIP/miro.
Call duration: 80 (Total time in system, in seconds)
Billsec: 57 (Total time call is up, in seconds)
The call is "ANSWERED", everything is OK.

Line 6 is also incoming call and is billed properly:
"","055224040","s","from-gsm","05xxxxxxx","Zap/1-1","SIP/miro-085e4e20","Dial","SIP/miro","2010-06-07 20:47:51","2010-06-07 20:48:02","2010-06-07 20:48:11",20,9,"ANSWERED","DOCUMENTATION","asterisk-1275943671.8",""


Line 4:

"","50","237","sip","""Miroslav Vukovic"" <50>","SIP/miro-085e2f60","Zap/1-1","Hangup","","2010-06-07 20:24:00",,"2010-06-07 20:30:45",405,0,"NO ANSWER","DOCUMENTATION","asterisk-1275942240.4",""

It is an outgoing call to 237 number.
Call duration: 405 (Total time in system, in seconds)
Billsec: 0 (Total time call is up, in seconds)
The call is treated as NO ANSWER, but it shouldn't be that way!

The same is for the call in Line 5:
"","50","237","sip","""Miroslav Vukovic"" <50>","SIP/miro-085e86b8","Zap/1-1","Dial","Zap/1/237","2010-06-07 20:30:49",,"2010-06-07 20:37:03",374,0,"NO ANSWER","DOCUMENTATION","asterisk-1275942649.6",""

call duration: 374; billsec: 0 !!!

Like I said before, this is not just a problem with the CDR but with asterisk not signalizing the status of the outgoing call !

mIRO
Time to create page: 0.048 seconds
Powered by Kunena Forum